<template>
  <div class="header">
    <!-- <h2 class='logo'>
        <router-link :to='{ name: 'websiteHome'}'
                     exact
                     tag='a'>
          <img src=''
               alt=''>
        </router-link>
      </h2> -->
    <ul class="nav">
      <li v-for="(item, i) in routeArr" :key="i" style="font-size:18px;">
        <router-link
          :to="{ name: item.routeName }"
          exact
          :class="{ active: item.routeName == $route.name }"
          tag="a"
          >{{ item.title }}</router-link
        >
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      mobileSlide: false,
      routeArr: [{ title: "首页", routeName: "websiteHome" }]
    };
  }
};
</script>

<style lang="scss" scoped>
.header {
  width: 100%;
  height: 78px;
  padding: 0;
  overflow: hidden;
  background: #444444;
  font-size: 18px;
  .logo img {
    height: 38px;
    margin: 14px 0 0 70px;
  }
  .nav {
    float: right;
    padding: 0;
    li {
      margin-right: 50px;
      line-height: 70px;
      color: #fff;
    }
  }
}
</style>
